.class Lframent/SearchInShop$mOncliclister;
.super Ljava/lang/Object;
.source "SearchInShop.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lframent/SearchInShop;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "mOncliclister"
.end annotation


# instance fields
.field final synthetic this$0:Lframent/SearchInShop;


# direct methods
.method private constructor <init>(Lframent/SearchInShop;)V
    .locals 0

    .prologue
    .line 132
    iput-object p1, p0, Lframent/SearchInShop$mOncliclister;->this$0:Lframent/SearchInShop;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lframent/SearchInShop;Lframent/SearchInShop$mOncliclister;)V
    .locals 0

    .prologue
    .line 132
    invoke-direct {p0, p1}, Lframent/SearchInShop$mOncliclister;-><init>(Lframent/SearchInShop;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 136
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    sparse-switch v1, :sswitch_data_0

    .line 157
    :goto_0
    return-void

    .line 138
    :sswitch_0
    iget-object v1, p0, Lframent/SearchInShop$mOncliclister;->this$0:Lframent/SearchInShop;

    invoke-virtual {v1}, Lframent/SearchInShop;->finish()V

    goto :goto_0

    .line 143
    :sswitch_1
    iget-object v1, p0, Lframent/SearchInShop$mOncliclister;->this$0:Lframent/SearchInShop;

    # getter for: Lframent/SearchInShop;->et_key:Landroid/widget/EditText;
    invoke-static {v1}, Lframent/SearchInShop;->access$0(Lframent/SearchInShop;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, "%"

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    const-string v2, " "

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 144
    .local v0, "key":Ljava/lang/String;
    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 145
    iget-object v1, p0, Lframent/SearchInShop$mOncliclister;->this$0:Lframent/SearchInShop;

    # getter for: Lframent/SearchInShop;->context:Landroid/content/Context;
    invoke-static {v1}, Lframent/SearchInShop;->access$1(Lframent/SearchInShop;)Landroid/content/Context;

    move-result-object v1

    const-string v2, "\u8bf7\u8f93\u5165\u8981\u67e5\u627e\u7684\u5546\u54c1\u540d"

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 147
    :cond_0
    iget-object v1, p0, Lframent/SearchInShop$mOncliclister;->this$0:Lframent/SearchInShop;

    # invokes: Lframent/SearchInShop;->getHttpSearchGoodsData(Ljava/lang/String;)V
    invoke-static {v1, v0}, Lframent/SearchInShop;->access$2(Lframent/SearchInShop;Ljava/lang/String;)V

    goto :goto_0

    .line 136
    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c00a8 -> :sswitch_0
        0x7f0c013d -> :sswitch_1
    .end sparse-switch
.end method
